package io.github.talelin.latticy.dto.student;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotEmpty;

/**
* @author vvboy
*/
@Data
@NoArgsConstructor
public class CreateOrUpdateStudentDTO{

    @NotEmpty(message = "必须传入姓名")
    @Size(max = 50, message = "姓名不能超过50字符")
    private String name;

    @NotEmpty(message = "必须传入年龄")
    @Size(max = 50, message = "年龄不能超过50字符")
    private String six;

    @NotEmpty(message = "必须传入clazz")
    @Size(max = 50, message = "clazz不能超过50字符")
    private String clazz;


}
